<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
?>

<!-- JavaScript -->
<script type="text/javascript" src="<?= base_url() ?>js/wufoo.js"></script>
<script src="<?= base_url() ?>js/chosen.jquery.js" type="text/javascript"></script>
<!-- CSS -->
<!--<link rel="stylesheet" type="text/css" href="<?= base_url() ?>css/form/form.css" media="screen, tv, projection" title="Default" />-->
<link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>css/datepicker.css" media="screen, tv, projection" title="Default" />
<script type="text/javascript" src="<?= base_url() ?>js/datepicker.js"></script>
<link rel="stylesheet" href="<?php echo base_url() ?>css/chosen.css" />

<div id="container">
	<?
    //Setting Awal Value Jika Prosedur yang dilakukan adalah prosedur input biasa.
	// $param_exp=explode("#",$param_id);
	$value = array(
		'id'			=> "",
		'legend'				=> "Form Peminjaman",
		'info'					=> "Form Peminjaman",
		'act_form'				=> "perpus/list_pinjam/peminjaman/"
	);
	
	?>
	<?= form_open($value["act_form"],'class="wufoo" onSubmit="return validate()" name="form_jenisujian"'); ?>
	<fieldset class="fieldset">
	<legend class="legend">
		<?= $value["legend"] ?> |
	</legend>
	
	<div class="info">
		<div><?= $value["info"] ?></div>
	</div>
	<div>
		<?= anchor(site_url('perpus/list_pinjam'),img(array('src'=>'images/main/38.png','border'=>'0','alt'=>'')).' Kembali ke daftar Peminjaman','Menampilkan halaman Daftar Peminjaman'); ?>
	</div>
	<?php if (!empty($err_msg)): ?>
		<div class="ret_error">
			<?php echo $err_msg; ?>
		</div>
	<?php endif; ?>
 <!-- Konten -------------------------------------------------------------------------->
 <div id="contentform">
	<?php echo form_error('kode_eksemplar'); ?>
	
	<ul>
		<li>
			<label class="desc">Kode Eksemplar</label>
			<div>
				<input style="background:#e0e2e3" class="field text" type="text" maxlength="20" size="20" name="kode_eksemplar" id="kode_eksemplar" readonly value=""/>	
				<a href="javascript:goPopup_eks()" ><img src="<?php echo base_url().'images/magnifier.png'?>"/></a>
			</div>
			<p class="instruct">
				Masukkan Keterangan Pada Kolom ini.			
			</p>
		</li>

		<li class="buttons">
		  <input id="saveForm" class="btTxt" type="submit" value="Simpan" />
		  <input name="submit" type="reset" value="Batal" />
		</li>
	</ul>
</div>
</fieldset>

<script type="text/javascript">
function goPopup_eks(){
	win = window.open("<?php echo base_url().'index.php/perpus/list_pinjam/list_eksemplar'?>","popup_eksemplar","width=700,height=550,scrollbars=0");
	win.focus();
}
</script>	
<?= form_close(); ?>
</form>
</div><!--container-->